home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3impexp.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_IMPORTEXPORT_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_IMPORTEXPORT = 109;
-
-
-
-
- // Description: Save given geometric object to a file. This method is defined by the impexp
- // base class but it is up to sub classes to implement this.
- // Returns: Boolean, FALSE cancels
- // p3: Object, geometric object to be saved
-
- R3IEM_WRITEOBJECTS = 109000;
-
- function mR3IEM_WRITEOBJECTS(p3) {
- return DoA(this.r3obj, 109000, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Read geometric objects from file. It is up to sub classes to implement this
- // method. Version 1: If replace is given, and the file to be read contains data,
- // it is the responsibility of the object to clear the buffer.
- // Returns: Boolean, FALSE means error
- // p3: Boolean, replace. If true, clear the contents of the layer before reading objects.
-
- R3IEM_READOBJECTS = 109001;
-
- function mR3IEM_READOBJECTS(p3) {
- return DoA(this.r3obj, 109001, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Used for defining hierarchical structure of the object tree. Begin level is sent for
- // each level object to indicate that new hierarchy level is entered. It is up to
- // the sub class to implement this methods
- // p3: Object, level object
-
- R3IEM_WRITEOBJECTSBEGINLEVEL = 109002;
-
- function mR3IEM_WRITEOBJECTSBEGINLEVEL(p3) {
- DoA(this.r3obj, 109002, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Used for defining hierarchical structure of the object tree. Sent after all sub objects
- // in the level in question are written. It is up to the sub class to
- // implement this methods
- // p3: Object, level object
-
- R3IEM_WRITEOBJECTSENDLEVEL = 109003;
-
- function mR3IEM_WRITEOBJECTSENDLEVEL(p3) {
- DoA(this.r3obj, 109003, p3, R3TID_OBJECT, 0);
- }
-
- // Description: These two methods are used for reading/writing macros. It is up to the sub
- // class to implement these. The macro object can be found using R3AppMacros(app) function. Use R3MCM_ENUMMACROS
- // and R3MCM_ENUMBINDINGS methods to scan through and export macros.
-
- R3IEM_READMACROS = 109005;
-
- function mR3IEM_READMACROS() {
- DoA(this.r3obj, 109005, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Start reading. It is up to the sub class to implement this method.
-
- R3IEM_BEGINREAD = 109006;
-
- function mR3IEM_BEGINREAD() {
- DoA(this.r3obj, 109006, 0, R3TID_INTEGER, 0);
- }
-
- // Description: End reading. It is up to the sub class to implement this method.
-
- R3IEM_ENDREAD = 109007;
-
- function mR3IEM_ENDREAD() {
- DoA(this.r3obj, 109007, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Start writing session. It is up to sub classes to implement these.
-
- R3IEM_BEGINWRITE = 109008;
-
- function mR3IEM_BEGINWRITE() {
- DoA(this.r3obj, 109008, 0, R3TID_INTEGER, 0);
- }
-
- // Description: End writing session. It is up to sub classes to implement these.
-
- R3IEM_ENDWRITE = 109009;
-
- function mR3IEM_ENDWRITE() {
- DoA(this.r3obj, 109009, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Read format specific options from the opened file and intialize format specific model.
- // p3: Object, format specific model to be initialized.
-
- R3IEM_READOPTIONS = 109010;
-
- function mR3IEM_READOPTIONS(p3) {
- DoA(this.r3obj, 109010, p3, R3TID_OBJECT, 0);
- }
-
- // Description: See R3IEM_READOBJECTS, R3IEM_WRITEOBJECTS
-
- R3IEM_WRITEGRIDS = 109024;
-
- function mR3IEM_WRITEGRIDS() {
- DoA(this.r3obj, 109024, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Class method. Returns the file extension (.r3d, .dxf etc.) * If the file format doesn't
- // define any extension, NULL is returned.
- // Returns: String, extension
-
- R3IECM_GETFILEEXTENSION = 109025;
-
- function mR3IECM_GETFILEEXTENSION() {
- return DoA(this.r3obj, 109025, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- R3IEA_FileName = 109500;
- function SetR3IEA_FileName(value) {
- R3Set(this.r3obj, R3IEA_FileName, value, R3TID_STRING, 0);
- }
-
- R3IEA_PrimLayer = 109501;
- function SetR3IEA_PrimLayer(value) {
- R3Set(this.r3obj, R3IEA_PrimLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3IEA_PrimLayer() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_PrimLayer, R3TID_OBJECT, 0));
- }
-
- R3IEA_MaterialLayer = 109502;
- function SetR3IEA_MaterialLayer(value) {
- R3Set(this.r3obj, R3IEA_MaterialLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3IEA_MaterialLayer() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_MaterialLayer, R3TID_OBJECT, 0));
- }
-
- R3IEA_Mode = 109503;
- function SetR3IEA_Mode(value) {
- R3Set(this.r3obj, R3IEA_Mode, value, R3TID_INTEGER, 0);
- }
-
- function GetR3IEA_Mode() {
- return R3Get(this.r3obj, R3IEA_Mode, R3TID_INTEGER, 0);
- }
-
- R3IEA_File = 109504;
- function GetR3IEA_File() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_File, R3TID_OBJECT, 0));
- }
-
- R3IEA_Model = 109505;
- function SetR3IEA_Model(value) {
- R3Set(this.r3obj, R3IEA_Model, value, R3TID_OBJECT, 0);
- }
-
- function GetR3IEA_Model() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_Model, R3TID_OBJECT, 0));
- }
-
- var R3IEA_Binary = 109506; // Boolean
- var R3IEA_ProgressIndicator = 109507; // Object
- var R3IEA_OpenClose = 109508; // Boolean
- R3IEA_CurrentLayer = 109509;
- function SetR3IEA_CurrentLayer(value) {
- R3Set(this.r3obj, R3IEA_CurrentLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3IEA_CurrentLayer() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_CurrentLayer, R3TID_OBJECT, 0));
- }
-
- R3IEA_SubLayer = 109510;
- function SetR3IEA_SubLayer(value) {
- R3Set(this.r3obj, R3IEA_SubLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3IEA_SubLayer() {
- return R3ToJS(R3Get(this.r3obj, R3IEA_SubLayer, R3TID_OBJECT, 0));
- }
-
- var R3IEMODE_WRITE = 0;
- var R3IEMODE_READ = 1;
-
-
- function r3Importexport () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_IMPORTEXPORT, arguments);
- }
- // Methods
- this.WRITEOBJECTS=mR3IEM_WRITEOBJECTS;
- this.READOBJECTS=mR3IEM_READOBJECTS;
- this.WRITEOBJECTSBEGINLEVEL=mR3IEM_WRITEOBJECTSBEGINLEVEL;
- this.WRITEOBJECTSENDLEVEL=mR3IEM_WRITEOBJECTSENDLEVEL;
- this.READMACROS=mR3IEM_READMACROS;
- this.BEGINREAD=mR3IEM_BEGINREAD;
- this.ENDREAD=mR3IEM_ENDREAD;
- this.BEGINWRITE=mR3IEM_BEGINWRITE;
- this.ENDWRITE=mR3IEM_ENDWRITE;
- this.READOPTIONS=mR3IEM_READOPTIONS;
- this.WRITEGRIDS=mR3IEM_WRITEGRIDS;
- this.GETFILEEXTENSION=mR3IECM_GETFILEEXTENSION;
-
- // Attributes
- this.SetFileName=SetR3IEA_FileName;
- this.GetPrimLayer=GetR3IEA_PrimLayer;
- this.SetPrimLayer=SetR3IEA_PrimLayer;
- this.GetMaterialLayer=GetR3IEA_MaterialLayer;
- this.SetMaterialLayer=SetR3IEA_MaterialLayer;
- this.GetMode=GetR3IEA_Mode;
- this.SetMode=SetR3IEA_Mode;
- this.GetFile=GetR3IEA_File;
- this.GetModel=GetR3IEA_Model;
- this.SetModel=SetR3IEA_Model;
- this.GetCurrentLayer=GetR3IEA_CurrentLayer;
- this.SetCurrentLayer=SetR3IEA_CurrentLayer;
- this.GetSubLayer=GetR3IEA_SubLayer;
- this.SetSubLayer=SetR3IEA_SubLayer;
- }
-
- r3Importexport.prototype=new r3Root;
- // r3impexp.h_H